package org.khd.org.service;

import org.khd.org.domain.Employee;
import org.khd.org.query.EmployeeQuery;
import org.khd.base.utils.PageList;

import java.util.List;

public interface IEmployeeService {
    //新增Employee数据
    void insertEmp(Employee employee);

    //修改Employee数据
    void updateEmp(Employee employee);

    //根据id删除Employee数据
    void deleteEmpById(Long id);

    //根据id查询Employee数据
    Employee queryEmpById(Long id);

    //查询Employee数据
    List<Employee> queryEmpAll();

    //查询Employee每页数据
    PageList<Employee> queryEmpPage(EmployeeQuery query);

    //批量删除Employee数据
    void patchDeleteEmp(List<Long> ids);

    //查询用户名
    Employee getByUsername(String username);
}
